		_statusArray = _this select 3;
		
		_autoLockStatus = _statusArray select 0;
		_vehicle = _statusArray select 1; 
		_playerID = _statusArray select 2;
		_previousAction = _statusArray select 3;

		// Get the current AutoLock status..
		_autoLockStatusCurrent = [_vehicle] call ZFSS_GetAutoLockStatus;
		titleText[format["AutoLock Status: %1",_autoLockStatus],"PLAIN DOWN"];

		
		// Clear off the previous action.
		_vehicle removeAction _previousAction;
		
	
		if(_autoLockStatusCurrent == "INACTIVE" || _autoLockStatusCurrent == "DISABLED" || _autoLockStatusCurrent == "any") then
		{
				// Sets the autolock status to ENABLED
				_lockStatusAfter = [_vehicle,"ENABLED"] call ZFSS_SetAutoLockOnVehicle;
				
				// Gets the AutoLock status
				_returnValue = _vehicle getVariable "ZFSS_AutoLock";
				
				// Tells the user that AutoLock is on.
				titleText[format["AutoLock is %1",_returnValue],"PLAIN DOWN"];
						}
		else
		{
				// Sets autolock status to DISABLED
				_lockStatusAfter = [_vehicle,"DISABLED"] call ZFSS_SetAutoLockOnVehicle;
				
				// Gets the AutoLock status
				_returnValue = _vehicle getVariable "ZFSS_AutoLock";
				
				// Tells the user that AutoLock is off
				titleText[format["AutoLock is %1",_returnValue],"PLAIN DOWN"];
		};

		// Now we need to make sure that when someone gets out of the car, it's locked	
		_inVehicleGetOut = _vehicle addEventHandler["GetOut",{
			private["_vehicle"];
		
			_vehicle = _this select 0;
			_autoLockStatus = [_vehicle] call ZFSS_GetAutoLockStatus;
			if(_autoLockStatus == "ENABLED") then
			{
					/*
						Taken from actions/veh_lock.sqf
					*/
					PVDZE_veh_Lock = [_vehicle,true];
			
					if (local _vehicle) then {
						PVDZE_veh_Lock spawn local_lockUnlock
					} else {
						publicVariable "PVDZE_veh_Lock";
					};
			
				//_vehicle setVehicleLock "LOCK";
				titleText["AutoLock is ON. Your vehicle was locked.","PLAIN DOWN"];
			};
		}];
		
		if(ZFSS_Enable_Debug) then
		{
			diag_log(format["ZFSS_AutoLock: Player UID %1, AutoLock Status %2",_playerID,_autoLockStatus]);
		};